const path = require("path");

module.exports = {
  mode: "development",
  entry: {
    "main": "./main.js",
    "another": "./another.js"
  },
  output: {
    path: path.resolve(__dirname, "dist"),
    filename: "[name].bundle.js",
    clean: true,
  },
  optimization: {
    splitChunks: {
      chunks: "all"
    }
  }
}